package myJs.myPkg

import scala.scalajs.js
import org.scalajs.dom.Blob

import scala.scalajs.js.Dynamic.{global => g}
import scala.scalajs.js.annotation.JSImport

/**
 * Created by yz on 2019/3/14
 */
@JSImport("resources/FileSaver.js-master/FileSaver.min.js", JSImport.Default)
@js.native
object FileSaver extends js.Object{

  def saveAs(data: Blob, fileName: String):Unit=js.native

}
